package cn.silver.framework.mybatis.constant;

public final class PageContant {

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";
    /**
     * 正序排列
     */
    public static final String ASC_SORT = "asc";
    /**
     * 正序排列
     */
    public static final String ASC_FULL = "ascending";
    /**
     * 倒序排列
     */
    public static final String DESC_SORT = "desc";
    /**
     * 倒序排列
     */
    public static final String DESC_FULL = "descending";

    /**
     * 分页参数合理化
     */
    public static final String REASONABLE = "reasonable";
    /**
     * 当前记录起始索引 默认值
     */
    public static final int DEFAULT_PAGE_NUM = 1;
    /**
     * 当前每页记录数 默认值
     */
    public static final int DEFAULT_PAGE_SIZE = 10;
}
